package com.sixth.dao;

import com.sixth.entity.BusCar;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface BusCarDao {
    int deleteByPrimaryKey(@Param("carnumber") String carnumber);

    int insert(BusCar record);

    int insertSelective(BusCar record);

    BusCar selectByPrimaryKey(String carnumber);

    int updateByPrimaryKeySelective(BusCar record);

    int updateByPrimaryKey(BusCar record);
    //根据身份证号查询
    List<BusCar> listByCondition(@Param("identity") String identity);


    List<BusCar> listByConditioner(@Param("carnumber") String carnumber,@Param("cartype") String cartype, @Param("color")String color,@Param("price") Double price,@Param("rentprice") Double rentprice, @Param("deposit")Double deposit, @Param("isrenting")Integer isrenting,@Param("description") String description,@Param("carimg") String carimg );

    int add(@Param("carnumber") String carnumber,@Param("cartype") String cartype, @Param("color")String color,@Param("price") Double price,@Param("rentprice") Double rentprice, @Param("deposit")Double deposit, @Param("isrenting")Integer isrenting,@Param("description") String description,@Param("carimg") String carimg,@Param("createtime") Date createtime);

    int update(@Param("carnumber") String carnumber,@Param("cartype") String cartype, @Param("color")String color,@Param("price") Double price,@Param("rentprice") Double rentprice, @Param("deposit")Double deposit, @Param("isrenting")Integer isrenting,@Param("description") String description,@Param("carimg") String carimg,@Param("createtime")Date createtime);

    List<BusCar> selectone(@Param("carnumber") String carnumber, @Param("carimg") String carimg);

    //批量删除
    int dels(@Param("uid")String uid);
}